package li;

import java.util.Scanner;

public class day92 {
    public static void main(String[] args) {
      String username="apple";
        String password="123456";

        Scanner sc=new Scanner(System.in );
        for (int i = 0; i <=3; i++) {
            System.out.println("请输入用户名");
            String scu=sc.nextLine();
            System.out.println("请输入密码");
            String scp=sc.nextLine();
            if(username.equalsIgnoreCase(scu)&&password.equalsIgnoreCase(scp)){
                System.out.println("登录成功");
              break;
            }else{
                if (i==3){
                    System.out.println("今日达到上限，明日再来");
                }else{
                    System.out.println("登录失败");
                }


            }
        }


    }



}
